package com.wdl.fmnew.core.di.component;

import com.wdl.fmnew.app.demo.DemoModule;
import com.wdl.fmnew.app.demo.MainActivity;
import com.wdl.fmnew.app.fragmentDemo.DemoFragmentActivity;
import com.wdl.fmnew.app.fragmentDemo.FragementDemoModule;
import com.wdl.fmnew.app.second.SecondActivity;
import com.wdl.fmnew.core.di.scope.PerActivity;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class ActivityBindingModule {

    @PerActivity
    @ContributesAndroidInjector(modules = DemoModule.class)
    abstract MainActivity mainActivity();

    @PerActivity
    @ContributesAndroidInjector
    abstract SecondActivity secondActivity();

    @PerActivity
    @ContributesAndroidInjector(modules = FragementDemoModule.class)
    abstract DemoFragmentActivity demoFragmentActivity();
}
